/*
 * AutoMFormat.h
 *
 *  Created on: 2018年5月7日
 *      Author: zhengboyuan
 */

#ifndef AUTOMFORMAT_H_
#define AUTOMFORMAT_H_

#include "TByteBuffer.h"

class AutoMFormat : public MFormat
{
public:
	AutoMFormat():
		MFormat()
	{
		m_vpropBuffer.ensure(1024 * 4);
		m_configBuffer.ensure(1024 * 4);

		vProp = m_vpropBuffer.data();
		vPropSize = m_vpropBuffer.capacity();

		config = m_configBuffer.data();
		configSize = m_configBuffer.capacity();
	}

	comn::ByteBuffer	m_vpropBuffer;
	comn::ByteBuffer	m_configBuffer;

};


#endif /* AUTOMFORMAT_H_ */
